﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuClient.aspx.cs" Inherits="CarServiseSite.MenuClient" %>

<%@ Register Assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.DynamicData" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="./images/text.css" rel="stylesheet" type="text/css">
    <title></title>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td valign="top" width="542">
                        <img src="./images/pic01.jpg" height="131" width="542">
                    </td>
                    <td height="131" valign="top" align="left">
                        <img src="./images/logo.gif" height="131" width="228">
                    </td>
                </tr>
                <tr valign="top">
                    <td colspan="2" height="41">
                        <table width="770" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr>
                                    <td width="1%">
                                        <img src="./images/SPACER.GIF" height="41" width="12">
                                    </td>
                                    <td valign="middle" width="99%">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <table height="100%" width="770" bgcolor="185490" border="0" cellpadding="2" cellspacing="1">
            <tbody>
                <tr>
                    <td height="40" valign="middle" align="left" bgcolor="2792FF">
                        Личный кабинет
                         <div align="right">
                            <asp:Button ID="ButtonExit" runat="server" Text="Выход" onclick="ButtonExit_Click" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td valign="top" align="left" bgcolor="DAECFF">
                        <table class="text" height="100%" width="95%" border="0" cellpadding="5" cellspacing="0">
                            <tbody>
                                <tr>
                                    <td valign="top">
                                        <asp:Label ID="ErrorLabel" runat="server"></asp:Label>
                                        <asp:Label ID="AnswerLabel" runat="server" Text=""></asp:Label>
                                        <br />
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="GetOperationsByLogin_Client"
                                            EnableModelValidation="True" AllowPaging="True" AllowSorting="True" 
                                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                                            CellPadding="3">
                                            <Columns>
                                                <asp:BoundField DataField="Name" HeaderText="Имя" SortExpression="Name" />
                                                <asp:BoundField DataField="Surname" HeaderText="Фамилия" SortExpression="Surname" />
                                                <asp:BoundField DataField="Patronimic" HeaderText="Отчество" SortExpression="Patronimic" />
                                                <asp:BoundField DataField="WorkDate" HeaderText="Дата Работы" SortExpression="WorkDate" />
                                                <asp:BoundField DataField="Name1" HeaderText="Операция" SortExpression="Name1" />
                                                <asp:BoundField DataField="Description" HeaderText="Описание Операции" SortExpression="Description" />
                                                <asp:BoundField DataField="Cost" HeaderText="Стоимость" SortExpression="Cost" />
                                            </Columns>
                                            <FooterStyle BackColor="White" ForeColor="#000066" />
                                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                            <RowStyle ForeColor="#000066" />
                                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                        </asp:GridView>
                                        <asp:SqlDataSource ID="GetOperationsByLogin_Client" runat="server" ConnectionString="<%$ ConnectionStrings:CarServiceConnectionString %>"
                                            SelectCommand="GetOperationsByLogin" SelectCommandType="StoredProcedure">
                                            <SelectParameters>
                                                <asp:SessionParameter Name="Login" SessionField="Login" Type="String" />
                                            </SelectParameters>
                                        </asp:SqlDataSource>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" valign="bottom" align="center">
                                        Powered by Fifth Wheel 2011.
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
